home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTYNAME(3) MINTLIB LIBRARY FUNCTIONS TTYNAME(3)
-
-
- N✓NA✓AM✓ME✓E
- ttyname - find name of a terminal
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <unistd.h>
-
- char *ttyname(int fildes);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- ttyname returns a pointer to a string containing the null-
- terminated path name of the terminal device associated
- with file descriptor fildes. A NULL pointer is returned if
- fildes does not describe a terminal device.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- i✓is✓sa✓at✓tt✓ty✓y(✓(3✓3)✓)
-
- N✓NO✓OT✓TE✓ES✓S
- If MiNT is not active or a version of MiNT before 0.9 is
- used, either /dev/aux or /dev/con is returned.
-
- If MiNT 0.9 or later is used and no terminal name could be
- found, /dev/tty is returned.
-
- The return value points to static data whose contents is
- overwritten by each call.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-